<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>Document</title>
    <script src="Login/js/jquery-3.5.1.min.js"></script>

</head>
<body>

</body>
<script>

    var userList=new Array();
    userList.push({user:"wangji",password:"1234",type:"tea"});
    userList.push({user:"zhangsan",password:"1234",type:"tea"});

    $.ajax({
        type:"POST",
        url:"/quick12",
        data:JSON.stringify(userList),
        contentType:"application/json;charset=utf-8",
        success:function (userList) {
            console.log(userList);

        },  error:function(e){
            console.log(e.status);
        }
    })
</script>
</html>